function [x_initial, fval_initial] = initialize(xData, fvalData, PopulationSize)

    % 原始矩阵大小
    originalSize = size(xData, 1);

    % 创建新的插值索引
    originalIndices = linspace(1, originalSize, originalSize);
    newIndices = linspace(1, originalSize, PopulationSize);

    % 对 x_Initial 进行插值
    x_initial = interp1(originalIndices, xData, newIndices);

    % 对 fval_Initial 进行插值
    fval_initial = interp1(originalIndices, fvalData, newIndices);
end